<!-- headline -->
<div id="header">
    <h2>guestapp /entries</h2>
    <br>
    [<a href="/insert">compose new entry</a>]
</div>

<!-- main -->
<div id="main">
    <!-- entries -->
    <?php foreach ($entries as $entry): ?>
    <div id="<?php echo $entry->getId(); ?>" class="entry">
        <a class="entry-head" href="#<?php echo $entry->getId(); ?>">
            <?php echo $entry->getName(); ?> | <?php echo $entry->getFormattedDate(); ?>
        </a>
        <a class="del" href="/delete?id=<?php echo $entry->getId(); ?>">[x]</a>
        <div><?php echo $entry->getText(); ?></div>
    </div>
    <?php endforeach; ?>
</div>